package com.gua.jbs.serviceImpl;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

import com.gua.jbs.dao.AllProductDao;
import com.gua.jbs.daoImpl.IAllProductDao;
import com.gua.jbs.pojo.Jbspit;
import com.gua.jbs.service.IAllProductService;
import com.gua.jbs.utility.ApplicationException;
import com.gua.jbs.utility.ExceptionMessage;

public class AllProductService extends BaseService implements
		IAllProductService {
	private static final Logger logger = Logger
			.getLogger(AllProductService.class);
	private IAllProductDao allProdDao = null;

	public AllProductService() {
		allProdDao = new AllProductDao();
	}

	public List<Jbspit> getAllProductInfo() throws ApplicationException {
		List<Jbspit> list_allProd = null;
		try {
			list_allProd = allProdDao.getAllProductDao();
		} catch (ApplicationException ae) {
			logger.error("AllProductService : getAllProductInfo() ----> "
					+ ae.getMessage());
			throw ae;
		}
		return list_allProd;
	}

}
